<?php
/**
 * ArchivePress Configuration File
 *
 * @author University of London Computer Centre
 * @version 1.1.0
 * @package ArchivePress
 */

/**
 * Dependencies
 */
require_once(ABSPATH . "wp-content/plugins/archivepress/classes/url_to_absolute/url_to_absolute.php");
require_once(ABSPATH . "wp-content/plugins/archivepress/classes/pagination.class.php");
require_once(ABSPATH . "wp-content/plugins/archivepress/classes/archivepress.class.php");
require_once(ABSPATH . "wp-content/plugins/archivepress/classes/feedautodiscovery.class.php");
require_once(ABSPATH . "wp-content/plugins/archivepress/classes/feedreader.class.php");
require_once(ABSPATH . "wp-content/plugins/archivepress/classes/log.class.php");

/**
 * MODIFY FROM HERE
 */
// Getting Started
$ArchivePressOptions = new ArchivePressOptions();

// Plugin Version: DON'T MODIFY IT
$ArchivePressOptions->pluginVersion 		= ArchivePressOptions::PLUGIN_VERSION;

// New tables names (WP AND PLUGIN PREFIX added automatically)
$ArchivePressOptions->feedsTableName 		= ArchivePressOptions::PLUGIN_FEEDSTABLE_NAME;
$ArchivePressOptions->feedLinksTableName 	= ArchivePressOptions::PLUGIN_FEEDLINKSTABLE_NAME;
$ArchivePressOptions->feedMetaTableName		= ArchivePressOptions::PLUGIN_FEEDMETATABLE_NAME;
$ArchivePressOptions->feedOptionsTableName	= ArchivePressOptions::PLUGIN_FEEDOPTIONSTABLE_NAME;
$ArchivePressOptions->feedUsersTableName	= ArchivePressOptions::PLUGIN_FEEDUSERSTABLE_NAME;
$ArchivePressOptions->logTableName			= ArchivePressOptions::PLUGIN_LOGTABLE_NAME;

// FEED OPTIONS
// Default system Feed Protocol (in case the feed urls autodiscovery finds the same feed but with different protocols)
$ArchivePressOptions->defFeedProtocol 		= ArchivePressOptions::FEED_PROTOCOL_ATOM;

// Default RSS Version [RSS_VERSION_0_90 | RSS_VERSION_0_91 | RSS_VERSION_1_0 | RSS_VERSION_2_0]
$ArchivePressOptions->defRssVersion 		= ArchivePressOptions::RSS_VERSION_2_0;

// Default ATOM Version [ATOM_VERSION_0_3 | ATOM_VERSION_1_0]
$ArchivePressOptions->defAtomVersion 		= ArchivePressOptions::ATOM_VERSION_1_0;

// Default fetch frequency (keep in mind your server/blog performances when you change it!)
// [FETCH_INTERVAL_DAILY | FETCH_INTERVAL_BID | FETCH_INTERVAL_TID | FETCH_INTERVAL_FOURTAD | FETCH_INTERVAL_HOURLY]
$ArchivePressOptions->defFeedFetchInt 		= ArchivePressOptions::FETCH_INTERVAL_DAILY;

// Show intermediate step [WHAT the reader is going to do] during "add feed" procedure
// [YES | NO]
$ArchivePressOptions->showWhatWillDo		= ArchivePressOptions::YES;

// It indicates if the feed you just added is active [YES | NO]
$ArchivePressOptions->justAddedIsActive		= ArchivePressOptions::YES;

// It indicates if the feed reader has to follow the feed link to try to use the original post content instead of the feed one
// [YES | NO]
// PS: (YES>>slower)
$ArchivePressOptions->followPermaLink		= ArchivePressOptions::NO;

// It indicates if the plugin has to download and save the media (NO>>link to original post content)
// [YES | NO]
$ArchivePressOptions->embedMedia			= ArchivePressOptions::YES;

// set the crontab type
// [CRON_WPCRON | CRON_WEBCRON | CRON_UNIXCRON]
// IMPORTANT:
//	CRON_WPCRON > it's a fake cron: it works ONLY if someone surf the website or the admin area
//	CRON_WEBCRON > you have to use a web cron system to curl the following address: http://your-blog?arpr_key=key provided by the plugin
//	CRON_UNIXCRON > you have to use the classic unix cron and add a cronjob like php /your-blog arpr_key=key provided by the plugin
// keep in mind that if you scheduled a feed daily and the cron hourly, it means the script will look for feed to fetch every hour
// BUT IT WILL FETCH THEM EVERY DAY, according to the feed fetching interval
$ArchivePressOptions->cronType				= ArchivePressOptions::CRON_WPCRON;

// It indicates if keep the default post author
// [YES | NO]
// YES>> it saves the autthors as wp "fake users"
$ArchivePressOptions->keepPostAuth			= ArchivePressOptions::YES;

// Default post author type, in case of NOT FOUND post author OR
// in case keepPostAuth == NO
// [FEED_NAME | ADMIN_USER | user ID]
// FEED_NAME>> blog title
// ADMIN_USER>> the admin user
// user ID>> a different user (specify the ID)
$ArchivePressOptions->defAuthor				= ArchivePressOptions::FEED_NAME;

// It indicates if use the blog name as default category for a post
// [YES | NO]
$ArchivePressOptions->keepPostCategories	= ArchivePressOptions::YES;

// In case keepPostCategories == NO, it indicates which is the default category to use
// [USE_DEF_CAT | category ID]
// USE_DEF_CAT>> wp default category
// category ID>> a different category (specify the ID)
$ArchivePressOptions->defCategory			= ArchivePressOptions::USE_DEF_CAT;

// It indicates if use the feed <category> and <dc:subject> as post tags
// [YES | NO]
$ArchivePressOptions->useCategoriesAsTags	= ArchivePressOptions::YES;

// If useCategoriesAsTags == NO, it indicates if execute the auto-tag script
// if YES: YOU NEED TO PROVIDE A YAHOO APP KEY
// more info: http://developer.yahoo.com/search/content/V1/termExtraction.html
// [YES | NO]
$ArchivePressOptions->tryAutoTag			= ArchivePressOptions::NO;

// Yahoo appKey (to execute the autotag script)
// more info: http://developer.yahoo.com/search/content/V1/termExtraction.html
$ArchivePressOptions->YahooKey				= NULL;

// It indicates the new posts status
// [POST_PUBLISH | POST_DRAFF | POST_PENDING]
$ArchivePressOptions->defPostStatus			= ArchivePressOptions::POST_PUBLISH;

// It indicates the default comments status for new posts
// [COMMENTS_CLOSED | COMMENTS_OPEN]
$ArchivePressOptions->defCommentsStatus		= ArchivePressOptions::COMMENTS_CLOSED;

// It indicates if fetch also posts comments
// [YES | NO]
$ArchivePressOptions->postFetchComments		= ArchivePressOptions::YES;

// It indicates if IN CASE A COMMENT FEED IS NOT FOUND
// try with the TypePad STANDARD blog procedure
// [YES | NO]
// PS: YES>SLOW!
$ArchivePressOptions->tryTypePadStandard	= ArchivePressOptions::NO;

// If postFetchComments == YES> comments are approved by default?
// [YES | NO]
// YES> ONLY the fetched comments are approved by default,
//		all the other comments will follow the wp rules
// NO> the fetched comments will follow the wp rules
$ArchivePressOptions->areCommentsApproved	= ArchivePressOptions::YES;

// Indicates which html tags are allowed inside the posts
// use the following syntax:
// or DEFAULT_HTML_TAGS
$ArchivePressOptions->htmlAllowedTags		= ArchivePressOptions::DEFAULT_HTML_TAGS;

// save feed also as contributors (it will appear inside a blogroll named defContributorLink)
// [YES | NO]
$ArchivePressOptions->saveContributors		= ArchivePressOptions::YES;

// if saveContributors == YES > name of the contributors blogroll
//  [DEFAULT_CONTRIBUTORS | name you like]
// DEFAULT_CONTRIBUTORS > the proper translation of "Contributors"
// name you like > a name you like
$ArchivePressOptions->defContributorLink	= ArchivePressOptions::DEFAULT_CONTRIBUTORS;

// in case the excerpt is not found inside the feed, it indicates if the plugin has to try to find it
// [YES | NO]
$ArchivePressOptions->tryToFindExcerpt		= ArchivePressOptions::YES;

// LOG OPTIONS CONFIG
// set the log system on or off
// [LOG_ON | LOG_OFF]
$ArchivePressOptions->defLogStatus			= ArchivePressLog::LOG_OFF;

// set the log level (use debug in non production environment)
// [LOG_BASIC | LOG_DEBUG]
$ArchivePressOptions->defLogLevel			= ArchivePressLog::LOG_BASIC;

// set what show in the dashboard widget by default
// [LOG_BASIC | LOG_DEBUG]
$ArchivePressOptions->log_widget_show		= ArchivePressLog::LOG_BASIC;

// set how many lines display in the dashboatrd widget by default
// [5 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50]
$ArchivePressOptions->log_widget_items		= 10;

// PRIVATE OPTIONS CONFIG (not visible from the user interface)
// allow the user to remove everything while he's removing the plugin
// [YES | NO]
$ArchivePressOptions->pluginDelIsAllowed	= ArchivePressOptions::NO;

// number of attempts to understand if a blog is a TypePad Standard Blog
// it will be used ONLY IF tryTypePadStandard==YES
// 1-infinite
// PS:	Basically it means how many times the fetcher has to try
//		to find comments using the TypePad Standard Blog procedure
//		This is because the Procedure return TRUE
//		if and only if at least ONE comment is found (content+author+date)
$ArchivePressOptions->tryTypePadAttempts	= 10;

/**
 * END MODIFY
 */

/**
 * Other initialisations
 */
$ArchivePressLog = NULL;	// the log class will be initialized inside the ArchivePress one
$ArchivePress = new ArchivePress($ArchivePressOptions);

?>